package com.baizhi.cmfz.controller;

import com.baizhi.cmfz.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * This is a Class.
 *
 * @author zhanglh
 * @date 2019/09/18
 */
@RestController
@RequestMapping("log")
public class LogController {
    @Autowired
    private LogService logService;

    @RequestMapping("all")
    public Map showAllLog(String logType, String logContent, int page, int limit) {
        return logService.selectAllLog(logType, logContent, page, limit);
    }

}
